package com.hotelmanage.manage.entities;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Room {

    @Id
    public String roomId; //宿舍编号
    public String floorId; //宿舍编号
    public String buildingId;//楼栋编号

    public Room() {

    }

    @Override
    public String toString() {
        return "Room{" +
                "roomId=" + roomId +
                ", floorId=" + floorId +
                ", buildingId=" + buildingId +
                '}';
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public void setFloorId(String floorId) {
        this.floorId = floorId;
    }

    public void setBuildingId(String buildingId) {
        this.buildingId = buildingId;
    }

    public String getRoomId() {
        return roomId;
    }

    public String getFloorId() {
        return floorId;
    }

    public String getBuildingId() {
        return buildingId;
    }

    public Room(String roomId, String buildingId,String floorId) {
        this.roomId = roomId;
        this.buildingId = buildingId;
        this.floorId = floorId;
    }
}
